import { Random } from 'mockjs'
// Random.string(10) 随机字符串
// eslint-disable-next-line no-undef
module.exports = [{
    url: '/mock/sys/role/pagedddd',
    method: 'post',
    response: () => {
        return {
            code: 200,
            data: {
                total: 9,
                'list|10': [
                    {
                        id: 1,
                        createTime: Random.datetime(),
                        updateTime: Random.datetime(),
                        roleName: '超级管理员',
                        roleKey: 'ROLE_ADMIN',
                        remarks: '@cword(7,20)'
                    },
                    {
                        'id|+1': 2,
                        createTime: Random.datetime(),
                        updateTime: Random.datetime(),
                        roleName: '@cword(7,20)',
                        remarks: '@cword(20,30)',
                    }
                ]
            },
            message: 'ok'
        }
    }
}]
